﻿using System;
using System.Linq.Expressions;
using System.Reflection;

namespace DoubleAspect
{
    public class Aspect : IFreezable
    {
        public uint Order { get; set; }

        public void Attach<T>(T target, Predicate<MemberInfo> memberFilter)
        {
            
        }

        public void Detach()
        {
        }

        public void Before(Expression condition, Action action)
        {
            
        }

        public void After(Expression condition, Action action)
        {

        }

        public void Freeze()
        {
            IsFrozen = true;
        }

        public bool IsFrozen { get; private set; }
    }

    public interface IFreezable
    {
        void Freeze();
        bool IsFrozen { get; }
    }
}
